from django.urls import path,re_path
from . import views

urlpatterns = [
    # 免费课程信息
    path('free', views.FreeCourseListAPIView.as_view()),
    # 课程分类组件
    path('categories', views.CategoriesListAPIView.as_view()),

    # 详情页下面的课程信息列表
    path('chapters', views.ChapterListAPIView.as_view()),

    # 详情页的老师信息和课程信息
    re_path('^free/(?P<pk>\d+)$', views.FreeCourseRetrieveAPIView.as_view()),

]
